﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MatthiWare.PortChecker.UI
{
    public partial class PortInfoDialog : Form
    {
        public PortInfoDialog(PortInfo pinfo)
        {
            InitializeComponent();

            lblName.Text = "Name: " + pinfo.Name;
            lblDescription.Text = "Description: " + pinfo.Description;
            this.Text = "Port: " + pinfo.PortNumber;
            lblOpen.Text = "Open: " + pinfo.Open.ToString();
            lblMessage.Text = "Message: " + pinfo.Message;

        }
    }
}
